package com.lagou.userservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangxuyuan
 * @version 1.0
 * @date 2021/1/14
 */
@FeignClient(value = "code-service")
public interface RemoteCodeService {

    @GetMapping("/validate/{email}/{code}")
    public Integer validate(@PathVariable("email")String email,@PathVariable("code")String code);
}
